package com.fqcar.fqdf.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.fqdf.framework.android.net.response.BaseRespBean;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by lvsidong on 2017/10/26.
 */

public class HistoryCarListBean extends BaseRespBean implements Parcelable {
    private int carId;
    private int amdinId;

    private String adminName;

    private String carNum;
    private String cause;
    private List<HistoryCarImgListBean> dealImgList;
    private String detail;
    private String endGps;
    private String endLocation;
    private String endTime;
    private String endTimeDesc;
    private int id;
    private String sim;
    private String startGps;
    private String startLocation;
    private String startTime;
    public int getCarId() {
        return carId;
    }

    public void setCarId(int carId) {
        this.carId = carId;
    }

    public String getAdminName() {
        return adminName;
    }

    public void setAdminName(String adminName) {
        this.adminName = adminName;
    }

    public int getAmdinId() {
        return amdinId;
    }

    public void setAmdinId(int amdinId) {
        this.amdinId = amdinId;
    }

    public String getCarNum() {
        return carNum;
    }

    public void setCarNum(String carNum) {
        this.carNum = carNum;
    }

    public String getCause() {
        return cause;
    }

    public void setCause(String cause) {
        this.cause = cause;
    }

    public List<HistoryCarImgListBean> getDealImgList() {
        return dealImgList;
    }

    public void setDealImgList(List<HistoryCarImgListBean> dealImgList) {
        this.dealImgList = dealImgList;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public String getEndGps() {
        return endGps;
    }

    public void setEndGps(String endGps) {
        this.endGps = endGps;
    }

    public String getEndLocation() {
        return endLocation;
    }

    public void setEndLocation(String endLocation) {
        this.endLocation = endLocation;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    public String getEndTimeDesc() {
        return endTimeDesc;
    }

    public void setEndTimeDesc(String endTimeDesc) {
        this.endTimeDesc = endTimeDesc;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getSim() {
        return sim;
    }

    public void setSim(String sim) {
        this.sim = sim;
    }

    public String getStartGps() {
        return startGps;
    }

    public void setStartGps(String startGps) {
        this.startGps = startGps;
    }

    public String getStartLocation() {
        return startLocation;
    }

    public void setStartLocation(String startLocation) {
        this.startLocation = startLocation;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    /*public int getStartTotalMileage() {
        return startTotalMileage;
    }

    public void setStartTotalMileage(int startTotalMileage) {
        this.startTotalMileage = startTotalMileage;
    }

    public int getEndTotalMileage() {
        return endTotalMileage;
    }

    public void setEndTotalMileage(int endTotalMileage) {
        this.endTotalMileage = endTotalMileage;
    }*/


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.carId);
        dest.writeInt(this.amdinId);
        dest.writeString(this.adminName);
        dest.writeString(this.carNum);
        dest.writeString(this.cause);
        dest.writeList(this.dealImgList);
        dest.writeString(this.detail);
        dest.writeString(this.endGps);
        dest.writeString(this.endLocation);
        dest.writeString(this.endTime);
        dest.writeString(this.endTimeDesc);
        dest.writeInt(this.id);
        dest.writeString(this.sim);
        dest.writeString(this.startGps);
        dest.writeString(this.startLocation);
        dest.writeString(this.startTime);
    }

    public HistoryCarListBean() {
    }

    protected HistoryCarListBean(Parcel in) {
        this.carId = in.readInt();
        this.amdinId = in.readInt();
        this.adminName = in.readString();
        this.carNum = in.readString();
        this.cause = in.readString();
        this.dealImgList = new ArrayList<HistoryCarImgListBean>();
        in.readList(this.dealImgList, HistoryCarImgListBean.class.getClassLoader());
        this.detail = in.readString();
        this.endGps = in.readString();
        this.endLocation = in.readString();
        this.endTime = in.readString();
        this.endTimeDesc = in.readString();
        this.id = in.readInt();
        this.sim = in.readString();
        this.startGps = in.readString();
        this.startLocation = in.readString();
        this.startTime = in.readString();
    }

    public static final Parcelable.Creator<HistoryCarListBean> CREATOR = new Parcelable.Creator<HistoryCarListBean>() {
        @Override
        public HistoryCarListBean createFromParcel(Parcel source) {
            return new HistoryCarListBean(source);
        }

        @Override
        public HistoryCarListBean[] newArray(int size) {
            return new HistoryCarListBean[size];
        }
    };
}
